<div class="modal-header">
    <span class="modal-title"><img src="{$userRs.avatar}" class="avatar mr-2" width="100%" onerror="this.src='{:config('template.skin')}/img/avatar.png'">{$userRs.username} [ {$userRs.nickname} ]</span>
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
</div>
<div class="modal-body">
    {if config('app.other.system_type') neq 'company'}
        <div class="w-100 mb-3 text-center">
            <span class="mr-4">{:lang('shopv_balance')}：&yen;<span class="text-danger ml-2 mr-1 font-weight-bold">{:str_replace('.00','',$userRs.balance)}</span>{:lang('shopv_dollar')}</span>
            <!-- {:lang('shopv_withdrawable')}：<span class="text-primary font-weight-bold">{$userRs.cash}</span> {:lang('shopv_dollar')}
            <i class="fa fa-database mr-2 ml-4"></i>{:lang('shopv_score')}：<span class="text-success font-weight-bold mr-2">{$userRs.score}</span> -->
        </div>
    {/if}
    <div class="card card-outline card-success card-outline-tabs border-top-0 mb-0">
        <div class="card-header p-0">
            <ul class="nav nav-tabs border-bottom-0">
                <li class="nav-item">
                    <a class="nav-link active" data-toggle="pill" href="#tab_general">{:lang('v_basic')}</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" data-toggle="pill" href="#tab_extend">{:lang('v_extend')}</a>
                </li>
            </ul>
        </div>
        <div class="card-body">
            <div class="tab-content">
                <div class="tab-pane active" id="tab_general">
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('v_realname')}：</div>
                        <div class="col-md-8">
                            [ {$userRs.g_title} ] {$userRs.realname}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('g_gender')}：</div>
                        <div class="col-md-8">
                            {switch userRs.gender}
                                {case 1}{:lang('g_male')}{/case}
                                {case 2}{:lang('g_female')}{/case}
                            {/switch}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('v_mobile')} / Email：</div>
                        <div class="col-md-8">
                            {$userRs.mobile} / {$userRs.email}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('v_wechat')} / QQ：</div>
                        <div class="col-md-8">
                            {$userRs.wechat} / {$userRs.qq}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('v_social')} {:lang('g_login')}：</div>
                        <div class="col-md-8">
                            {notempty name="userRs.qqid"}<i class="fab fa-qq text-primary mr-2"></i>{/notempty}
                            {notempty name="userRs.openid"}<i class="fab fa-weixin text-success mr-2"></i>{/notempty}
                            {notempty name="userRs.weiboid"}<i class="fab fa-weibo text-danger mr-2"></i>{/notempty}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('shopv_subscribe')} {:lang('v_wechat_public')}：</div>
                        <div class="col-md-8">
                            {switch userRs.subscribe}
                                {case 0}{:lang('shopv_no_subscribe')}{/case}
                                {case 1}{:lang('shopv_have_subscribe')}{/case}
                                {case 2}{:lang('shopv_cancel_subscribe')}{/case}
                                {case 3}{:lang('g_unknown')}{/case}
                            {/switch}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('g_login')} {:lang('g_times')}：</div>
                        <div class="col-md-8">
                            {$userRs.logintimes}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('g_last')} {:lang('g_login')} {:lang('v_time')}：</div>
                        <div class="col-md-8">
                            {notempty name="userRs.lastlogin"}{$userRs.lastlogin|date='Y-m-d H:i:s'}{else /}{$userRs.addtime|date='Y-m-d H:i:s'}{/notempty}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('g_reg')} {:lang('v_time')}：</div>
                        <div class="col-md-8">
                            {$userRs.addtime|date='Y-m-d H:i:s'}
                        </div>
                    </div>
                </div>
                <div class="tab-pane" id="tab_extend">
                    <!-- <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('shopv_spread')} ID：</div>
                        <div class="col-md-8">
                            {$userRs.spread}
                        </div>
                    </div> -->
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('v_company')}：</div>
                        <div class="col-md-8">
                            {$userRs.company}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('v_telephone')}：</div>
                        <div class="col-md-8">
                            {$userRs.telephone}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('v_area')}：</div>
                        <div class="col-md-8">
                            {:getParentStr($userRs.areaid)}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('v_birthday')}：</div>
                        <div class="col-md-8">
                            {$userRs.birthday}
                        </div>
                    </div>
                    <!-- <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('shopv_distribution')} {:lang('v_status')}：</div>
                        <div class="col-md-8">
                            {switch userRs.apply_type}
                                {case 0}{:lang('v_no_application')}{/case}
                                {case 1}{:lang('v_audit')}{/case}
                                {case 2}{:lang('v_not_pass')}{/case}
                                {case 3}{:lang('v_audit_pending')}{/case}
                            {/switch}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('shopv_distribution')} {:lang('v_authgroup')}：</div>
                        <div class="col-md-8">
                            {if empty($rs.distribution_id)}
                                {:lang('v_no_application')}
                            {else /}
                                {php}$distribution = $rs['distribution_id'];{/php}
                                {tag:list name="disRs" table="auth_group" where="id='$distribution'" limit="1" order="id desc"}
                                    {$disRs.title}
                                {/tag:list}
                            {/if}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('v_security_question')}：</div>
                        <div class="col-md-8">
                            {$userRs.question}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('v_security_answer')}：</div>
                        <div class="col-md-8">
                            {$userRs.answer}
                        </div>
                    </div> -->
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">IP：</div>
                        <div class="col-md-8">
                            {$userRs.ip}
                        </div>
                    </div>
                    <div class="row mb-2">
                        <div class="col-md-4 pr-0 text-right">{:lang('v_note')}：</div>
                        <div class="col-md-8">
                            {$userRs.note|raw}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>